<table class="pagination">
    <tr>

    <?php if (isset($this->previous)): ?>
          <td class="start">
                <a href="<?= $this->url(array('page' => $this->first)); ?>">Start</a>
          </td>
    <?php else: ?>
          <td class="start">
                <span class="disabled">Start</span>
          </td>
    <?php endif; ?>

    <!-- Previous page link -->

    <?php if (isset($this->previous)): ?>
          <td class="previous">
                <a href="<?= $this->url(array('page' => $this->previous)); ?>">Previous</a>
          </td>
    <?php else: ?>
          <td class="previous">
                <span class="disabled">Previous</span>
          </td>
    <?php endif; ?>
    <!-- Numbered page links -->
    <?php foreach ($this->pagesInRange as $page): ?>
        <?php if ($page != $this->current): ?>
          <td class="page">
                <a href="<?= $this->url(array('page' => $page)); ?>"><?= $page; ?></a>
          </td>
        <?php else: ?>
              <td class="page">
                    <?= $page; ?>
              </td>
        <?php endif; ?>
    <?php endforeach; ?>
    <!-- Next page link -->
    <?php if (isset($this->next)): ?>
          <td class="next">
                <a href="<?= $this->url(array('page' => $this->next)); ?>">Next</a>
          </td>
    <?php else: ?>
          <td class="next">
                <span class="disabled">Next</span>
          </td>
    <?php endif; ?>
    <!-- Last page link -->
    <?php if (isset($this->next)): ?>
          <td class="end">
                <a href="<?= $this->url(array('page' => $this->last)); ?>">End</a>
          </td>
    <?php else: ?>
          <td class="end">
                <span class="disabled">End</span>
          </td>
    <?php endif; ?>
          
    </tr>
    <tr>
        <td colspan="6" align="center">
            Page <?= $this->current; ?> of <?= $this->last; ?>
        </td>
    </tr>
 </table>